package com.example.rentingcockpit.controller;


import com.example.rentingcockpit.service.impl.RentingServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.rentingcockpit.pojo.RadarAppliance;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Runaway
 * @since 2022-08-25
 */
@RestController
@RequestMapping("/renting")
public class RentingController {

    @Autowired
    private RentingServiceImpl rentingService;

    @GetMapping("/radar-appliance")
    public RadarAppliance radarApplianceProportion() {
        String city="北京";
        return rentingService.radarApplianceProportionObject(city);
    }

    @RequestMapping("/barchartPrice")
    public HashMap barchart() {
        return rentingService.barchartPrice();
    }
}
